<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglib.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>游戏点卡销售系统</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<link href="${ctx }/css/style.css" type="text/css" rel="stylesheet" />
		<link href="${ctx }/js/dtree/dtree.css" type="text/css" rel="stylesheet" />
		<style type="text/css">
			#cell1 {
				width: 735px;
				border: 0;
				text-align: center;
				margin: 0 auto;
				background-color: #ffffff;
			}
			
			#cell2 {
				width: 735px;
				border: 0;
				text-align: center;
				margin: 0 auto;
				background-color: #ffffff;
				border: 5px solid #EDDEA0;
				border-right-color: #EDDEA0;
			}
			
			#column1 {
				float: left;
				width: 735px;
				background-color: #EDDEA0;
				height: 15px
			}
			
			#column2 {
				float: left;
				width: 735px;
				background-color: #EDDEA0;
				height: 15px
			}
		</style>
		<script type="text/javascript" src="${ctx }/js/jquery/jquery-1.6.1.min.js"></script>
		<script type="text/javascript" src="${ctx }/js/dtree/dtree.js"></script>
		<script type="text/javascript">
			$(function() {
				d.openAll();

				$("#btnLogout").click(function() {
					location.href = "${ctx}/user/logout.action";
				});
			});

			with (window) onload = onresize = function()
	        {
	            var mainHeight = document.body.offsetHeight - 24;
	            document.getElementById("main").style.height = "" + mainHeight + "px";
	        }

	        viewFailInfo = function() {
	        	window.showModalDialog("${ctx}/post/viewFailPostHistoryDetail.action","","status=no;dialogWidth=390px;dialogHeight=450px;menu=no;resizeable=yes;scroll=yes;center=yes;edge=raise")
		    }
		</script>
	</head>
	<body style="background-color: #336699; margin-top: 0px; margin-left: 0px">
        <center>
        	&nbsp;<div id="cell1" align="center">    
    
    <div id="column1" style="height: 19px;" ></div>    
    </div>  
    
    <div  id="cell2" align="center" ;>    
    
    <div style="float:left; width:192px; background-color:#EDDEA0;text-align:center; margin:0" align="center">
    <div style="height:15px; line-height:15px;" class="alertText"><img alt="" border="0" src="${ctx }/images/quit.bmp" /><input type="button"  id="btnLogout" value="［安全退出］" style="Width:83px; cursor:hand; background-color:#EDDEA0; border:0px; font-weight:bold; color:Red;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    	<%-- 此处判断是否有被退回的汇款，如有显示信息 --%>
    	<s:if test="null != failPostCount && failPostCount.intValue() != 0">
    		<a href="#" onclick="viewFailInfo();">
    			<img alt="" src="${ctx }/images/new.gif" style="width: 28px; height: 11px; border: none;" />
    		</a>
    	</s:if>
    </div> 
    <div style="height:15px;"></div>
    <div style="width:168px;height:7px;"><img alt="" border="0" src="${ctx }/images/b_top.gif" width="168px" height="7px" /></div>
        
    <div style="width:168px; background-color:#ffffff;text-align:center; margin:0; border:1px solid #ffffff; border-left-color:#000000; border-right-color:#000000">
    
    <div style="width:168px;"><img alt="" border="0" src="${ctx }/images/zx.gif" width="123px" height="39px"></div>
    
    <div style="float:left;width:168px; height:20px"> 用户名：&nbsp;&nbsp;&nbsp;<span style="height: 20px; width: 59px"><s:property value="%{#session.user.username}" /></span></div>
   <div style="float:left;width:168px; height:20px">用户ID：&nbsp;&nbsp;&nbsp;<span style="height: 22px; width: 69px"><s:property value="%{#session.user.id}" /></span></div>
   <div style="float:left;width:168px; height:20px">用户级别：&nbsp;&nbsp;&nbsp;<span style="height: 22px; width: 69px;">
   	<s:if test="%{@com.gamecard.common.Constants@USER_ROLE_ADMIN == #session.user.userRole}">超级管理员</s:if>
   	<s:elseif test="%{@com.gamecard.common.Constants@USER_ROLE_VIP == #session.user.userRole}">VIP用户</s:elseif>
   	<s:elseif test="%{@com.gamecard.common.Constants@USER_ROLE_NORMAL == #session.user.userRole}">普通用户</s:elseif>
   </span></div>
   <div style="float:left;width:168px; height:20px;">帐户存款：&nbsp;&nbsp;&nbsp;<span style="height: 22px; width: 59px;"><s:property value="%{null == #session.user.money ? 0 : #session.user.money}" /></span>元</div>
   <div style="float:left;width:168px; height:15px"></div>
   
   <div style="float:inherit;width:132px; height:38px;"><img alt="" border="0" src="${ctx }/images/Attention.jpg"></div>
         
   <div  style="width:168px;" align="center">   
   <div style="float:left;width:20px;"></div>  
   <div id="divRightMenu" style="float:left;width:130px; text-align:left; background-color: #F8B109;">
       <%-- 权限树 --%>
       <gc:tree/>
   </div>       
   </div>  
  
   <div style="float:left;width:168px; height:10px"></div>  
   <div><img alt="" border="0" src="${ctx }/images/wa1.gif" /></div>
   </div>     
     <div style="width:168px;height:8px;"><img alt="" border="0" src="${ctx }/images/dh_bottom.gif" /></div>  
    <div style="float:left;width:168px; height:60px" align="center"></div>  
    
    </div> 
    <div style="float:right; width:531px; height:650px;background-color:#ffffff;position:relative;size:auto;">    
     <iframe id="main" name="mainFrame" frameborder="0" framespacing="0" scrolling="yes" width="100%"
         src="${ctx }/card/listAllCardProduct.action"></iframe>
      &nbsp;   
   
    </div>  
    
    </div>
    
    <div  id="cell1" align="center">            
    <div  id="column2"></div>  
    </div>
        </center>
	</body>
</html>
